<?php
namespace app;

class FUNC {

	static public function EPONG($msg, $code) {
header("Content-type:application/json","charset=utf-8");
header('Cache-Control: no-cache');
		echo json_encode(["error"=>true, "msg"=>$msg, "code"=>$code], JSON_PRETTY_PRINT);die;
	}

	static public function SPONG($data) {
header("Content-type:application/json","charset=utf-8");
header('Cache-Control: no-cache');
		echo json_encode(["error"=>false, "data"=>$data, "code"=>0],  JSON_PRETTY_PRINT);die;
	}	
}
